package com.swizipuremvc.core
{
	import org.puremvc.as3.multicore.core.View;
	import org.puremvc.as3.multicore.interfaces.IMediator;
	import org.puremvc.as3.multicore.interfaces.IView;

	public class ApplicationView extends View
	{
		private static var key:String;

		public function ApplicationView(key:String)
		{

			super(key);
		}

		override public function registerMediator(mediator:IMediator):void
		{
			//injectionManager.processInjection(mediator);
			super.registerMediator(mediator);
		}

	/*	private function get injectionManager():InjectionManager
		{
			return (ApplicationFacade.getInstance(key) as ApplicationFacade).injectionManager;
		}*/

		public static function getInstance(key:String):IView
		{
			key = key;
			if (instanceMap[key] == null)
				instanceMap[key] = new View(key);
			return instanceMap[key];
		}
	}
}
